import { getAction, deleteAction, putAction, postAction, httpAction, postFormData } from '@/api/manage'
const gateway = '/api/gateway/jic-backend-mall'
const baseUrl = window._CONFIG['domianURL'] || '/jeecg-boot'
export const userPage = (params) => postAction(gateway + `/mall/community/user/page`, params) // 社区用户-条件查询
export const userRecover = (params) => postAction(gateway + `/mall/community/user/recover`, params) // 账号恢复
export const userAddDisable = (params) => postAction(gateway + `/mall/community/user/addDisable`, params) // 账号禁用
export const whyPage = (params) => postAction(gateway + `/mall/community/why/page`, params) // 获取原因
export const templateDownload = baseUrl + gateway + `/mall/community/template/download` // 模板下载
export const userAdd = (params) => postAction(gateway + `/mall/community/user/add`, params) // 社区用户-添加
export const templateUpload = baseUrl + gateway + `/mall/community/template/upload` // 用户-批量导入
export const identityList = (params) => postAction(gateway + `/mall/community/user/identity/list`, params) // 社区用户-身份标识
export const userDisable = (params) => postAction(gateway + `/mall/community/user/disable`, params) // 查询用户被禁用记录
export const userTransfer = (params) => postAction(gateway + `/mall/community/user/transfer`, params) // 转移用户数据
export const exportUserList = baseUrl + gateway + `/mall/community/export/user/list` // 导出列表
export const userAddIdentity = (params) => postAction(gateway + `/mall/community/user/addIdentity`, params) // 新增/编辑身份模板
export const identityDelete = (params) => postAction(gateway + `/mall/community/user/identity/delete`, params) // 删除身份模板
export const identityCount = (params) => postAction(gateway + `/mall/community/user/identity/count`, params) // 查模板下面是否有数据
export const userTypeCount = (params) => postAction(gateway + `/mall/community/user/type/count`, params) // 用户状态数量

export const userList = (params) => postAction(gateway + `/mall/community/user/list`, params) // 官方账号